import Vue from 'vue'
import VueRouter from '../vuerouter'

import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    name: 'Home',
    path: '/',
    component: Home
  },
  {
    name: 'About',
    path: '/about',
    component: () => import(/** webpackChunkName "about" **/'../views/About.vue')
  }
]

export default new VueRouter({
  mode: 'history',
  routes
})
